package DataAccess;

/** 
 Data Access Layer Object Collection Of hy_info
*/
public class hy_infoCollection extends DataAccessCollectionBase
{
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����ͻ���
	public hy_infoCollection()
	{
		super();
	}
	@Override
	protected DataTable BuildTable()
	{
		DataTable dt = new DataTable();
		dt.Columns.Add("Hy_Num",Integer.class);
		dt.Columns.Add("Hy_Qq",Integer.class);
		dt.Columns.Add("Hy_Name",String.class);
		dt.Columns.Add("Hy_Email",String.class);
		dt.Columns.Add("Hy_Sex",String.class);
		dt.Columns.Add("Hy_Birthday",String.class);
		dt.Columns.Add("Hy_Work",String.class);
		dt.Columns.Add("Hy_Tel",String.class);
		dt.Columns.Add("Hy_Tel_Area",String.class);
		dt.Columns.Add("Hy_Tel_Fj",String.class);
		dt.Columns.Add("Hy_Post",String.class);
		dt.Columns.Add("Hy_Mobile_Tel",String.class);
		dt.Columns.Add("Hy_Guo",String.class);
		dt.Columns.Add("Hy_Sheng",String.class);
		dt.Columns.Add("Hy_shi",String.class);
		dt.Columns.Add("Add_Time",java.time.LocalDateTime.class);
		return dt;
	}
	@Override
	protected DataAccessBase GetItemByIndex(int index)
	{
		return new hy_info(_DataTable.Rows[index]);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����ͻ���
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����
	public final DataTable getTable()
	{
		return super._DataTable;
	}
	public final hy_info getItem(int index)
	{
		return new hy_info(_DataTable.Rows[index]);
	}
	public final void setItem(int index, hy_info value)
	{
		_DataTable.Rows.RemoveAt(index);
		_DataTable.Rows.InsertAt(value.getDataRow(),index);
	}
	public enum Field
	{
		Hy_Num,
		Hy_Qq,
		Hy_Name,
		Hy_Email,
		Hy_Sex,
		Hy_Birthday,
		Hy_Work,
		Hy_Tel,
		Hy_Tel_Area,
		Hy_Tel_Fj,
		Hy_Post,
		Hy_Mobile_Tel,
		Hy_Guo,
		Hy_Sheng,
		Hy_shi,
		Add_Time;

		public int getValue()
		{
			return this.ordinal();
		}

		public static Field forValue(int value)
		{
			return values()[value];
		}
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ��������
	protected final boolean ListByCondition(String condition)
	{
		String sql = "" + "\r\n" +
"				Select" + "\r\n" +
"					Hy_Num," + "\r\n" +
"					Hy_Qq," + "\r\n" +
"					Hy_Name," + "\r\n" +
"					Hy_Email," + "\r\n" +
"					Hy_Sex," + "\r\n" +
"					Hy_Birthday," + "\r\n" +
"					Hy_Work," + "\r\n" +
"					Hy_Tel," + "\r\n" +
"					Hy_Tel_Area," + "\r\n" +
"					Hy_Tel_Fj," + "\r\n" +
"					Hy_Post," + "\r\n" +
"					Hy_Mobile_Tel," + "\r\n" +
"					Hy_Guo," + "\r\n" +
"					Hy_Sheng," + "\r\n" +
"					Hy_shi," + "\r\n" +
"					Add_Time" + "\r\n" +
"				  From hy_info" + "\r\n" +
"				 Where " + condition + "\r\n" +
"			";
		return super.ListBySql(sql);
	}

	public final boolean ListAll()
	{
		String condition = "1=1";
		return ListByCondition(condition);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ��������
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ���淽��
	//TODO: �����ķ������������
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ���淽��
}